﻿/*
    这个表可以从server的t_exchange表获得,可以算出在某个交易所产生了多少的盈利或返还等
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Benefit.Models.Sys
{
    /// <summary>
    /// 交易所表
    /// </summary>
    public class Exchange
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 交易所名称
        /// </summary>
        public string ExchangeName { get; set; }
        /// <summary>
        /// 交易所代码
        /// </summary>
        public string ExchangeId { get; set; }
        ///// <summary>
        ///// 获取所有交易所
        ///// </summary>
        ///// <returns></returns>
        //public List<Exchange> GetList(DB.DBManager db)
        //{
        //    var query = db.Exchange.ToList();
        //    return query;
        //}
        ///// <summary>
        ///// 存储一个交易所
        ///// </summary>
        ///// <param name="exchangeId"></param>
        ///// <param name="exchangeName"></param>
        ///// <returns></returns>
        //public int InsertIntoBenefitFromServer(string exchangeId, string exchangeName, DB.DBManager db)
        //{
        //    Exchange change = new Exchange();
        //    change.ExchangeId = exchangeId;
        //    change.ExchangeName = exchangeName;
        //    db.Exchange.Add(change);
        //    db.SaveChanges();
        //    int id = change.Id;
        //    return id;
        //}
    }
}